package com.zyb.eduservice.client;

import com.zyb.commonutils.comment.UcenterMemberComment;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

@Component
@FeignClient(name = "service-ucenter",fallback = UcenterClientFeign.class)
public interface UcenterClient {

    //根据token字符串获取用户信息
    @PostMapping("/educenter/ucenter-member/getUserInfo/{userId}")
    public UcenterMemberComment getUserInfo(@PathVariable("userId") String userId);
}
